package com.newway.exception;

public class UserInfoException extends RuntimeException{
    private int code; // 自定义异常的状态码

    public UserInfoException(String message) {
        super(message);
    }

    public UserInfoException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
